<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/health/healthManage/save}">
        <input type="hidden" name="id" th:if="${healthManage}" th:value="${healthManage.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="title" placeholder="请输入标题" th:value="${healthManage?.title}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">卫生清理标志</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sanitary_deal" placeholder="请输入卫生清理标志" th:value="${healthManage?.sanitary_deal}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">卫生负责人</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sanitary_person" placeholder="请输入卫生负责人" th:value="${healthManage?.sanitary_person}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">清理时间记录</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sanitary_date" placeholder="请输入清理时间记录" th:value="${healthManage?.sanitary_date}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">卫生网格id</label>
            <div class="layui-input-inline">
<!--                <input class="layui-input" type="text" name="sanitary_id" placeholder="请输入卫生网格id" th:value="${healthManage?.sanitary_id}">-->
                <select name="sanitary_id"  lay-filter="aihao">
                    <option th:value="${healthManage?.sanitary_id}" th:text="${healthManage?.sanitary_id}">请选择</option>
                    <option  th:each="item:${list}"
                             th:selected="${healthManage?.sanitary_id eq item.id}"
                             th:value="${item.id}"
                             th:text="${item.name}"
                    ></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">卫生负责人电话</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sanitary_phone" placeholder="请输入卫生负责人电话" th:value="${healthManage?.sanitary_phone}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">卫生负责人编号</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sanitary_code" placeholder="请输入卫生负责人编号" th:value="${healthManage?.sanitary_code}">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${healthManage?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>
